<%@page import="java.util.ArrayList"%>
<%@page import="model.NewsModel"%>
<%@page import="java.util.List"%>
<%@page import="entity.News"%>
<%@page import="util.ResourceHelper"%>
 <%
     	NewsModel newsModel03 = new NewsModel();
 		String myAlias = request.getParameter("alias");
 		List<News> listRelate = new ArrayList<News>();
 		if(myAlias!=null){
 			listRelate = newsModel03.findRelatedNews(myAlias);	
 		}
     	if(listRelate.size()>0){
     %>
 <div class="box-item">
     <div class="box-item_inner">
         <h3 class="heading"><a href="#"><%=ResourceHelper.getByAlias("tin-lien-quan") %></a></h3>
         <ul class="news-item-listing">
         	<%
         		int count = 0;
         		for(News n : listRelate){
         			count +=1;
         	%>
         	<li class="number-grey<%=count%>"><a href="/<%=n.getAlias()%>.html"><%=n.getTitle() %></a></li>
         	<%
         		}
         	%>             
         </ul>
         <a class="readmore" href="#"><%=ResourceHelper.getByAlias("xem-them") %></a>
     </div>
 </div>
 <%
     	}
 %>